package com.common.groovy.model;

/**
 * @Description:
 * @Date: 2025/7/2 16:21
 */
public class ActionModel {
    private String name;
    private String label;
    private String type;
    private String before;
    private String after;
    private Detail detail;
    private String shell;

    public String getShell() {
        return shell;
    }

    public void setShell(String shell) {
        this.shell = shell;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }


    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public String getBefore() {
        return before;
    }

    public void setBefore(String before) {
        this.before = before;
    }

    public String getAfter() {
        return after;
    }

    public void setAfter(String after) {
        this.after = after;
    }

    public Detail getDetail() {
        return detail;
    }

    public void setDetail(Detail detail) {
        this.detail = detail;
    }

    public static class Detail{
        private String  saveScript;
        private String rawScript;
        private Boolean isPage;
        private PageParamName pageParamName;

        public String getSaveScript() {
            return saveScript;
        }

        public void setSaveScript(String saveScript) {
            this.saveScript = saveScript;
        }

        public String getRawScript() {
            return rawScript;
        }

        public void setRawScript(String rawScript) {
            this.rawScript = rawScript;
        }

        public Boolean getPage() {
            return isPage;
        }

        public void setPage(Boolean page) {
            isPage = page;
        }

        public PageParamName getPageParamName() {
            return pageParamName;
        }

        public void setPageParamName(PageParamName pageParamName) {
            this.pageParamName = pageParamName;
        }
    }


    public static class PageParamName{
        private String pageNo;
        private String pageSize;

        public String getPageNo() {
            return pageNo;
        }

        public void setPageNo(String pageNo) {
            this.pageNo = pageNo;
        }

        public String getPageSize() {
            return pageSize;
        }

        public void setPageSize(String pageSize) {
            this.pageSize = pageSize;
        }
    }

}
